package com.itao.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sjt
 * @Date 2025/6/23 14:52
 */
@RestController
public class ConfigController {


    @GetMapping("/yml")
    public String yml() {
        return """
                server:
                  port: 8080
                  path: /
                
                database:
                  deriver: mysql
                  host: localhost:3306
                  name: root
                  password: root
                  database: test""";
    }

    @GetMapping("/toml")
    public String toml() {
        return """
                [server]
                port = 8080
                path = "/"
                """;
    }
}
